package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.daomain.Book;

import java.util.List;

/**
 * @Auther: 宋H
 * @Date: 2022/8/19
 * @Description: com.itheima.service
 * @version: 1.0
 */
public interface BookService {
    Boolean insert(Book b);
    Book getId(Integer id);
    List<Book> getAll();
    Boolean update(Book b);
    Boolean delete(Integer id);
    IPage<Book> getPage(int currentPage, int pageSize);
    IPage<Book> getPage(int currentPage, int pageSize,Book book);
}
